import request from '@/utils/request'
import { QuestionSub } from '@/model/business/questions/publish/model'

export function loadQuestionListByConfigId (data: QuestionSub) {
  return request({
    url: '/common/publish/loadQuestionListByConfigId',
    method: 'post',
    data: data
  })
}

export function getMaxIndex (fid: string, unitId:string) {
  return request<string>({
    url: `/starDept/getMaxIndex?fid=${fid}&unitId=${unitId}`
  })
}
